ret = TRUE;
ot_transfer_out_value (out_csum, &ret_csum);
out:
- ot_clear_checksum (&checksum);
+ g_clear_pointer (&checksum, (GDestroyNotify)g_checksum_free);
return ret;
}
(void) unlink (ot_gfile_get_path_cached (temp_file));
if (raw_temp_file)
(void) unlink (ot_gfile_get_path_cached (raw_temp_file));
- ot_clear_checksum (&checksum);
+ g_clear_pointer (&checksum, (GDestroyNotify) g_checksum_free);
return ret;
}
ret = TRUE;
ot_transfer_out_value (out_csum, &ret_csum);
out:
- ot_clear_checksum (&checksum);
+ g_clear_pointer (&checksum, (GDestroyNotify) g_checksum_free);
return ret;
}
#include <gio/gio.h>
#define ot_gobject_refz(o) (o ? g_object_ref (o) : o)
-#define ot_clear_checksum(c) G_STMT_START { \
- typeof(c) __tmp_chksum = c; \
- if (__tmp_chksum) \
- { \
- g_checksum_free (*__tmp_chksum); \
- *__tmp_chksum = NULL; \
- } \
- } G_STMT_END;
#define ot_transfer_out_value(outp, srcp) G_STMT_START { \
if (outp) \